<?php


/**
 * @version 1.0
 * @created 08-Jun-2009 3:59:45 PM
 */
class DataValidator
{

	function __construct()
	{
	}

	static public function validateDomainName( Domain $domain ){
		//the reason I have this function is to not allow domains to be created until they have been agreed upon
		$returnValue = false;
		$validDomains = array();
		$validDomains[ ROLES_DOMAIN ] = ROLES_DOMAIN;
		$validDomains[ USERS_DOMAIN ] = USERS_DOMAIN;
		if( $validDomains[ $domain->name ] ){
			$returnValue = true;
		}
		return $returnValue;
	}

}
?>